﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Daybreak.Core.Terrains
{
    public struct BinaryTriangle
    {
        public short i1, i2, i3; // indices to _elevatedVertices
        public short lc, rc;	 // indices to left and right childs in _treeList
        public short ln, rn, bn; // indices of left, right and bottom neighbours in _treeList

        public BinaryTriangle(short vertice1, short vertice2, short vertice3)
        {
            this.i1 = vertice1;
            this.i2 = vertice2;
            this.i3 = vertice3;
            this.lc = -1; // no left/right child
            this.rc = -1;
            this.ln = -1; // no neighbours
            this.rn = -1;
            this.bn = -1;
        }
    }
}
